export async function getData(delay: number = 100): Promise<any[]> {
    return new Promise(resolve => setTimeout(() => resolve(data), delay));
}

const data = [
    {
        date: new Date(2021, 0, 1),
        temp: 2.1,
        rain: 0.22,
        pressure: 1011.6,
    },
    {
        date: new Date(2021, 0, 2),
        temp: 3.8,
        rain: 0.6,
        pressure: 1015.9,
    },
    {
        date: new Date(2021, 0, 3),
        temp: 3.8,
        rain: 2.2,
        pressure: 1017.6,
    },
    {
        date: new Date(2021, 0, 4),
        temp: 4.3,
        rain: 3.4,
        pressure: 1019.4,
    },
    {
        date: new Date(2021, 0, 5),
        temp: 3.7,
        rain: 1.4,
        pressure: 1020,
    },
    {
        date: new Date(2021, 0, 6),
        temp: 4,
        rain: 6.42,
        pressure: 1019.5,
    },
    {
        date: new Date(2021, 0, 7),
        temp: 1.1,
        rain: 0,
        pressure: 1018.5,
    },
    {
        date: new Date(2021, 0, 8),
        temp: 0.6,
        rain: 0,
        pressure: 1018.6,
    },
    {
        date: new Date(2021, 0, 9),
        temp: 1.2,
        rain: 0.4,
        pressure: 1026.3,
    },
    {
        date: new Date(2021, 0, 10),
        temp: 1,
        rain: 0,
        pressure: 1026,
    },
    {
        date: new Date(2021, 0, 11),
        temp: 6.7,
        rain: 0,
        pressure: 1017.8,
    },
    {
        date: new Date(2021, 0, 12),
        temp: 6.9,
        rain: 7.99,
        pressure: 1014.1,
    },
    {
        date: new Date(2021, 0, 13),
        temp: 6.1,
        rain: 2.19,
        pressure: 1018.4,
    },
    {
        date: new Date(2021, 0, 14),
        temp: 5,
        rain: 27.53,
        pressure: 1016.7,
    },
    {
        date: new Date(2021, 0, 15),
        temp: 2.4,
        rain: 0.6,
        pressure: 1029.7,
    },
    {
        date: new Date(2021, 0, 16),
        temp: 4.9,
        rain: 5.22,
        pressure: 1020,
    },
    {
        date: new Date(2021, 0, 17),
        temp: 5.8,
        rain: 0,
        pressure: 1023.5,
    },
    {
        date: new Date(2021, 0, 18),
        temp: 5.3,
        rain: 0.2,
        pressure: 1021.2,
    },
    {
        date: new Date(2021, 0, 19),
        temp: 10.7,
        rain: 2.69,
        pressure: 1004.1,
    },
    {
        date: new Date(2021, 0, 20),
        temp: 10.2,
        rain: 5.36,
        pressure: 987.5,
    },
    {
        date: new Date(2021, 0, 21),
        temp: 6.6,
        rain: 5.76,
        pressure: 984.6,
    },
    {
        date: new Date(2021, 0, 22),
        temp: 4,
        rain: 0.2,
        pressure: 992.2,
    },
    {
        date: new Date(2021, 0, 23),
        temp: 2.1,
        rain: 0.8,
        pressure: 995.6,
    },
    {
        date: new Date(2021, 0, 24),
        temp: 0.6,
        rain: 3.19,
        pressure: 997.1,
    },
    {
        date: new Date(2021, 0, 25),
        temp: 1.8,
        rain: 0.92,
        pressure: 1009.6,
    },
    {
        date: new Date(2021, 0, 26),
        temp: 3,
        rain: 0.6,
        pressure: 1015.8,
    },
    {
        date: new Date(2021, 0, 27),
        temp: 8.4,
        rain: 1.2,
        pressure: 1011,
    },
    {
        date: new Date(2021, 0, 28),
        temp: 10.9,
        rain: 18.8,
        pressure: 1001.6,
    },
    {
        date: new Date(2021, 0, 29),
        temp: 9.5,
        rain: 14.98,
        pressure: 998.3,
    },
    {
        date: new Date(2021, 0, 30),
        temp: 5.4,
        rain: 16.71,
        pressure: 997.9,
    },
    {
        date: new Date(2021, 0, 31),
        temp: 3.1,
        rain: 1,
        pressure: 997.9,
    },
    {
        date: new Date(2021, 1, 1),
        temp: 4.1,
        rain: 0.4,
        pressure: 996.9,
    },
    {
        date: new Date(2021, 1, 2),
        temp: 9.3,
        rain: 5.79,
        pressure: 994.7,
    },
    {
        date: new Date(2021, 1, 3),
        temp: 8.7,
        rain: 1.71,
        pressure: 996.6,
    },
    {
        date: new Date(2021, 1, 4),
        temp: 7,
        rain: 4.19,
        pressure: 1008.3,
    },
    {
        date: new Date(2021, 1, 5),
        temp: 8.3,
        rain: 10.6,
        pressure: 1008.2,
    },
    {
        date: new Date(2021, 1, 6),
        temp: 6.8,
        rain: 2.7,
        pressure: 1006.8,
    },
    {
        date: new Date(2021, 1, 7),
        temp: 1.8,
        rain: 10.59,
        pressure: 1004.4,
    },
    {
        date: new Date(2021, 1, 8),
        temp: -0.8,
        rain: 0,
        pressure: 1003.7,
    },
    {
        date: new Date(2021, 1, 9),
        temp: -0.1,
        rain: 0,
        pressure: 1006.9,
    },
    {
        date: new Date(2021, 1, 10),
        temp: 0.3,
        rain: 0,
        pressure: 1012.3,
    },
    {
        date: new Date(2021, 1, 11),
        temp: -0.9,
        rain: 0,
        pressure: 1025.1,
    },
    {
        date: new Date(2021, 1, 12),
        temp: -0.5,
        rain: 0,
        pressure: null,
    },
    {
        date: new Date(2021, 1, 13),
        temp: -0.9,
        rain: 0,
        pressure: 1032,
    },
    {
        date: new Date(2021, 1, 14),
        temp: 2.9,
        rain: 0.6,
        pressure: 1025.7,
    },
    {
        date: new Date(2021, 1, 15),
        temp: 8.8,
        rain: 3,
        pressure: 1018.2,
    },
    {
        date: new Date(2021, 1, 16),
        temp: 9.5,
        rain: 2.61,
        pressure: 1010,
    },
    {
        date: new Date(2021, 1, 17),
        temp: 10,
        rain: 3.41,
        pressure: 1009.8,
    },
    {
        date: new Date(2021, 1, 18),
        temp: 9,
        rain: 3.61,
        pressure: 1003.8,
    },
    {
        date: new Date(2021, 1, 19),
        temp: 8.8,
        rain: 0,
        pressure: 1009.1,
    },
    {
        date: new Date(2021, 1, 20),
        temp: 13.4,
        rain: 0,
        pressure: 1002.1,
    },
    {
        date: new Date(2021, 1, 21),
        temp: 12,
        rain: 0.23,
        pressure: 1008.3,
    },
    {
        date: new Date(2021, 1, 22),
        temp: 9.9,
        rain: 1,
        pressure: 1014.8,
    },
    {
        date: new Date(2021, 1, 23),
        temp: 10.7,
        rain: 0.2,
        pressure: 1022.9,
    },
    {
        date: new Date(2021, 1, 24),
        temp: 13.3,
        rain: 0,
        pressure: 1022.4,
    },
    {
        date: new Date(2021, 1, 25),
        temp: 10.7,
        rain: 0.8,
        pressure: 1026.7,
    },
    {
        date: new Date(2021, 1, 26),
        temp: 7.2,
        rain: 0,
        pressure: 1037.3,
    },
    {
        date: new Date(2021, 1, 27),
        temp: 7,
        rain: 0.2,
        pressure: 1040.9,
    },
    {
        date: new Date(2021, 1, 28),
        temp: 6.3,
        rain: 0,
        pressure: 1037.2,
    },
    {
        date: new Date(2021, 2, 1),
        temp: 6.4,
        rain: 0,
        pressure: 1032,
    },
    {
        date: new Date(2021, 2, 2),
        temp: 5.8,
        rain: 0,
        pressure: 1030,
    },
    {
        date: new Date(2021, 2, 3),
        temp: 5.9,
        rain: 9.17,
        pressure: 1027.6,
    },
    {
        date: new Date(2021, 2, 4),
        temp: 5.5,
        rain: 2.6,
        pressure: 1025.1,
    },
    {
        date: new Date(2021, 2, 5),
        temp: 4.8,
        rain: 0.2,
        pressure: 1031.8,
    },
    {
        date: new Date(2021, 2, 6),
        temp: 4.5,
        rain: 0,
        pressure: 1033.8,
    },
    {
        date: new Date(2021, 2, 7),
        temp: 3.9,
        rain: 0,
        pressure: 1027.7,
    },
    {
        date: new Date(2021, 2, 8),
        temp: 5.2,
        rain: 0,
        pressure: 1023.8,
    },
    {
        date: new Date(2021, 2, 9),
        temp: 7.8,
        rain: 0.2,
        pressure: 1020,
    },
    {
        date: new Date(2021, 2, 10),
        temp: 8.1,
        rain: 1.1,
        pressure: 1007.4,
    },
    {
        date: new Date(2021, 2, 11),
        temp: 9.9,
        rain: 6.32,
        pressure: 996.3,
    },
    {
        date: new Date(2021, 2, 12),
        temp: 7.8,
        rain: 4.8,
        pressure: 1002.1,
    },
    {
        date: new Date(2021, 2, 13),
        temp: 7.3,
        rain: 5.1,
        pressure: 995.7,
    },
    {
        date: new Date(2021, 2, 14),
        temp: 8,
        rain: 0.48,
        pressure: 1012.9,
    },
    {
        date: new Date(2021, 2, 15),
        temp: 9.7,
        rain: 1.78,
        pressure: 1020.4,
    },
    {
        date: new Date(2021, 2, 16),
        temp: 10.2,
        rain: 0.4,
        pressure: 1027.5,
    },
    {
        date: new Date(2021, 2, 17),
        temp: 7.8,
        rain: 1.99,
        pressure: 1033.2,
    },
    {
        date: new Date(2021, 2, 18),
        temp: 7.9,
        rain: 0.2,
        pressure: 1028.8,
    },
    {
        date: new Date(2021, 2, 19),
        temp: 8.3,
        rain: 0.4,
        pressure: 1028.1,
    },
    {
        date: new Date(2021, 2, 20),
        temp: 8.1,
        rain: 0,
        pressure: 1031.2,
    },
    {
        date: new Date(2021, 2, 21),
        temp: 8.8,
        rain: 0,
        pressure: 1028.7,
    },
    {
        date: new Date(2021, 2, 22),
        temp: 9.5,
        rain: 0,
        pressure: 1026.5,
    },
    {
        date: new Date(2021, 2, 23),
        temp: 8.3,
        rain: 0,
        pressure: 1024.2,
    },
    {
        date: new Date(2021, 2, 24),
        temp: 8.9,
        rain: 0,
        pressure: 1020.9,
    },
    {
        date: new Date(2021, 2, 25),
        temp: 8.9,
        rain: 2.39,
        pressure: 1018.4,
    },
    {
        date: new Date(2021, 2, 26),
        temp: 9.3,
        rain: 3.1,
        pressure: 1010.8,
    },
    {
        date: new Date(2021, 2, 27),
        temp: 7.9,
        rain: 1.12,
        pressure: 1020.5,
    },
    {
        date: new Date(2021, 2, 28),
        temp: 10.7,
        rain: 0,
        pressure: 1022.8,
    },
    {
        date: new Date(2021, 2, 29),
        temp: 13,
        rain: 0,
        pressure: 1026.6,
    },
    {
        date: new Date(2021, 2, 30),
        temp: 13.4,
        rain: 0,
        pressure: 1027.6,
    },
    {
        date: new Date(2021, 2, 31),
        temp: 14.4,
        rain: 0,
        pressure: 1020.5,
    },
    {
        date: new Date(2021, 3, 1),
        temp: 11.1,
        rain: 0,
        pressure: 1024.4,
    },
    {
        date: new Date(2021, 3, 2),
        temp: 7.5,
        rain: 0,
        pressure: 1030.2,
    },
    {
        date: new Date(2021, 3, 3),
        temp: 7.7,
        rain: 0,
        pressure: 1032.1,
    },
    {
        date: new Date(2021, 3, 4),
        temp: 9.3,
        rain: 0,
        pressure: 1026,
    },
    {
        date: new Date(2021, 3, 5),
        temp: 6.9,
        rain: 0,
        pressure: 1018.3,
    },
    {
        date: new Date(2021, 3, 6),
        temp: 4.1,
        rain: 0,
        pressure: 1020.6,
    },
    {
        date: new Date(2021, 3, 7),
        temp: 3.6,
        rain: 0,
        pressure: 1023.7,
    },
    {
        date: new Date(2021, 3, 8),
        temp: 7.9,
        rain: 0,
        pressure: 1021.7,
    },
    {
        date: new Date(2021, 3, 9),
        temp: 9.3,
        rain: 1,
        pressure: 1013.5,
    },
    {
        date: new Date(2021, 3, 10),
        temp: 7.1,
        rain: 0.2,
        pressure: 1013.2,
    },
    {
        date: new Date(2021, 3, 11),
        temp: 5.2,
        rain: 0.28,
        pressure: 1019.1,
    },
    {
        date: new Date(2021, 3, 12),
        temp: 5.2,
        rain: 2,
        pressure: 1028.6,
    },
    {
        date: new Date(2021, 3, 13),
        temp: 6.5,
        rain: 0,
        pressure: 1032.6,
    },
    {
        date: new Date(2021, 3, 14),
        temp: 8.4,
        rain: 0,
        pressure: 1032.7,
    },
    {
        date: new Date(2021, 3, 15),
        temp: 6.5,
        rain: 0.4,
        pressure: 1033.2,
    },
    {
        date: new Date(2021, 3, 16),
        temp: 6.9,
        rain: 0,
        pressure: 1031.2,
    },
    {
        date: new Date(2021, 3, 17),
        temp: 8.2,
        rain: 0,
        pressure: 1029.1,
    },
    {
        date: new Date(2021, 3, 18),
        temp: 9.3,
        rain: 0,
        pressure: 1025.1,
    },
    {
        date: new Date(2021, 3, 19),
        temp: 10.5,
        rain: 0,
        pressure: 1021.4,
    },
    {
        date: new Date(2021, 3, 20),
        temp: 11.3,
        rain: 0,
        pressure: 1018.1,
    },
    {
        date: new Date(2021, 3, 21),
        temp: 10.1,
        rain: 0,
        pressure: 1021,
    },
    {
        date: new Date(2021, 3, 22),
        temp: 8.5,
        rain: 0,
        pressure: 1027.1,
    },
    {
        date: new Date(2021, 3, 23),
        temp: 9.5,
        rain: 0,
        pressure: 1028.6,
    },
    {
        date: new Date(2021, 3, 24),
        temp: 10.7,
        rain: 0,
        pressure: 1027.5,
    },
    {
        date: new Date(2021, 3, 25),
        temp: 8.9,
        rain: 0,
        pressure: 1028.2,
    },
    {
        date: new Date(2021, 3, 26),
        temp: 8.2,
        rain: 0,
        pressure: 1021.7,
    },
    {
        date: new Date(2021, 3, 27),
        temp: 9.8,
        rain: 0,
        pressure: 1010.5,
    },
    {
        date: new Date(2021, 3, 28),
        temp: 9.3,
        rain: 2.1,
        pressure: 1006.4,
    },
    {
        date: new Date(2021, 3, 29),
        temp: 8.3,
        rain: 3.61,
        pressure: 1011.2,
    },
    {
        date: new Date(2021, 3, 30),
        temp: 8.3,
        rain: 0,
        pressure: 1015,
    },
    {
        date: new Date(2021, 4, 1),
        temp: 8.7,
        rain: 0.2,
        pressure: 1016.4,
    },
    {
        date: new Date(2021, 4, 2),
        temp: 9.3,
        rain: 2.6,
        pressure: 1020.3,
    },
    {
        date: new Date(2021, 4, 3),
        temp: 9.7,
        rain: 0.6,
        pressure: 1013.1,
    },
    {
        date: new Date(2021, 4, 4),
        temp: 10.3,
        rain: 5.53,
        pressure: 999.7,
    },
    {
        date: new Date(2021, 4, 5),
        temp: 7.5,
        rain: 3.2,
        pressure: 1008.7,
    },
    {
        date: new Date(2021, 4, 6),
        temp: 7.6,
        rain: 1.9,
        pressure: 1007.3,
    },
    {
        date: new Date(2021, 4, 7),
        temp: 9.9,
        rain: 0,
        pressure: 1015.2,
    },
    {
        date: new Date(2021, 4, 8),
        temp: 12.2,
        rain: 10.41,
        pressure: 1005.8,
    },
    {
        date: new Date(2021, 4, 9),
        temp: 16.4,
        rain: 0,
        pressure: 997.2,
    },
    {
        date: new Date(2021, 4, 10),
        temp: 13.6,
        rain: 0.8,
        pressure: 1000.1,
    },
    {
        date: new Date(2021, 4, 11),
        temp: 12.9,
        rain: 0.6,
        pressure: 1007,
    },
    {
        date: new Date(2021, 4, 12),
        temp: 13,
        rain: 1,
        pressure: 1008.5,
    },
    {
        date: new Date(2021, 4, 13),
        temp: 11.6,
        rain: 6.61,
        pressure: 1006.1,
    },
    {
        date: new Date(2021, 4, 14),
        temp: 10.2,
        rain: 1.2,
        pressure: 1009,
    },
    {
        date: new Date(2021, 4, 15),
        temp: 10.3,
        rain: 6.63,
        pressure: 1001.2,
    },
    {
        date: new Date(2021, 4, 16),
        temp: 10.5,
        rain: 6.39,
        pressure: 998,
    },
    {
        date: new Date(2021, 4, 17),
        temp: 11.5,
        rain: 11.32,
        pressure: 1004.6,
    },
    {
        date: new Date(2021, 4, 18),
        temp: 11.1,
        rain: 5.99,
        pressure: 1013.2,
    },
    {
        date: new Date(2021, 4, 19),
        temp: 12.4,
        rain: 6,
        pressure: 1017.4,
    },
    {
        date: new Date(2021, 4, 20),
        temp: 11.2,
        rain: 0.8,
        pressure: 1013.4,
    },
    {
        date: new Date(2021, 4, 21),
        temp: 11.8,
        rain: 2.16,
        pressure: 996.9,
    },
    {
        date: new Date(2021, 4, 22),
        temp: 10.8,
        rain: 7.39,
        pressure: 1002.7,
    },
    {
        date: new Date(2021, 4, 23),
        temp: 10.1,
        rain: 2.3,
        pressure: 1008.3,
    },
    {
        date: new Date(2021, 4, 24),
        temp: 10.3,
        rain: 12.26,
        pressure: 1003.1,
    },
    {
        date: new Date(2021, 4, 25),
        temp: 11,
        rain: 4.38,
        pressure: 1013.4,
    },
    {
        date: new Date(2021, 4, 26),
        temp: 11.5,
        rain: 0.8,
        pressure: 1014.7,
    },
    {
        date: new Date(2021, 4, 27),
        temp: 14.5,
        rain: 0,
        pressure: 1020,
    },
    {
        date: new Date(2021, 4, 28),
        temp: 14.9,
        rain: 0.6,
        pressure: 1023.2,
    },
    {
        date: new Date(2021, 4, 29),
        temp: 16.2,
        rain: 0.2,
        pressure: 1026.5,
    },
    {
        date: new Date(2021, 4, 30),
        temp: 13.2,
        rain: 0,
        pressure: 1027.6,
    },
    {
        date: new Date(2021, 4, 31),
        temp: 16,
        rain: 0.2,
        pressure: 1021.6,
    },
];